(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/index/index" ], {
    3967: function(e, n, t) {
        t.d(n, "b", function() {
            return r;
        }), t.d(n, "c", function() {
            return i;
        }), t.d(n, "a", function() {
            return o;
        });
        var o = {
            topBar: function() {
                return Promise.all([ t.e("common/vendor"), t.e("pages/components/top-bar/index") ]).then(t.bind(null, "6ebb"));
            }
        }, r = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    8069: function(e, n, t) {
        t.r(n);
        var o = t("da67"), r = t.n(o);
        for (var i in o) [ "default" ].indexOf(i) < 0 && function(e) {
            t.d(n, e, function() {
                return o[e];
            });
        }(i);
        n.default = r.a;
    },
    d537: function(e, n, t) {
        (function(e, n) {
            var o = t("4ea4");
            t("6cdc"), o(t("66fd"));
            var r = o(t("f75a"));
            e.__webpack_require_UNI_MP_PLUGIN__ = t, n(r.default);
        }).call(this, t("bc2e").default, t("543d").createPage);
    },
    da67: function(e, n, t) {
        (function(e, o) {
            var r = t("4ea4");
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var i = r(t("2eee")), a = r(t("c973")), s = r(t("9523")), c = t("26cb"), u = t("7744");
            function l(e, n) {
                var t = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var o = Object.getOwnPropertySymbols(e);
                    n && (o = o.filter(function(n) {
                        return Object.getOwnPropertyDescriptor(e, n).enumerable;
                    })), t.push.apply(t, o);
                }
                return t;
            }
            function f(e) {
                for (var n = 1; n < arguments.length; n++) {
                    var t = null != arguments[n] ? arguments[n] : {};
                    n % 2 ? l(Object(t), !0).forEach(function(n) {
                        (0, s.default)(e, n, t[n]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : l(Object(t)).forEach(function(n) {
                        Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
                    });
                }
                return e;
            }
            n.default = {
                components: {
                    openPage: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/open-page/index") ]).then(function() {
                            return resolve(t("5d5f"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    commonTitle: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/common-title/index") ]).then(function() {
                            return resolve(t("2370"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    zlSection: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/zl-section/index") ]).then(function() {
                            return resolve(t("8104"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    activitySection: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/activity-section/index") ]).then(function() {
                            return resolve(t("7bfc"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    feedCardList: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/feed-card-list/index") ]).then(function() {
                            return resolve(t("ae6e"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    Lion: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/hover-menu/index") ]).then(function() {
                            return resolve(t("fbea"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    privacyModal: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/privacy-modal/index") ]).then(function() {
                            return resolve(t("831f"));
                        }.bind(null, t)).catch(t.oe);
                    },
                    homeTop: function() {
                        Promise.all([ t.e("common/vendor"), t.e("pages/components/home-top/index") ]).then(function() {
                            return resolve(t("96cc"));
                        }.bind(null, t)).catch(t.oe);
                    }
                },
                data: function() {
                    return {
                        pageMeta: {
                            name: "推荐首页",
                            category: "推荐",
                            type: "首页",
                            column: "",
                            plate: ""
                        },
                        showOpen: !0,
                        showHome: !1,
                        topBarTitle: "",
                        topBarColor: "",
                        topBarBg: "transparent",
                        bannerList: [],
                        showList: [],
                        feedsList: [],
                        showMore: !0,
                        feedsOptions: {
                            page: 1,
                            more: !0,
                            pageSize: 4
                        },
                        pull: {},
                        push: {},
                        slideStart: [],
                        moveTime: 0,
                        pullLoad: !1,
                        isShowCloseContent: !1,
                        isHideCloseContent: !1,
                        scrollTimer: null
                    };
                },
                computed: f({}, (0, c.mapState)({
                    isAgreePravicy: function(e) {
                        return e.user.isAgreePravicy;
                    },
                    isPravicyShown: function(e) {
                        return e.user.isPravicyShown;
                    },
                    quickEntry: function(e) {
                        return e.data.find.quickEntry.slice(2);
                    },
                    banner: function(e) {
                        return e.home.banner.map(function(e) {
                            return f(f({}, e), {}, {
                                image: e.image.replace(/http:\/\//g, "https://")
                            });
                        });
                    },
                    activityHistoryList: function(e) {
                        return e.home.activityHistoryRecommend;
                    },
                    feeds: function(e) {
                        return e.home.feeds;
                    },
                    openPageData: function(e) {
                        return e.home.openPage;
                    },
                    openInfo: function(e) {
                        return e.home.openInfo;
                    }
                })),
                watch: {
                    banner: function(e) {
                        e && e.length > 0 && this.setHomeTopBgStyle();
                    }
                },
                onLoad: function(n) {
                    e.hideTabBar(), this.isAgreePravicy || this.isPravicyShown || this.$refs.privacyModal.show(), 
                    this.getData();
                },
                onShow: function() {
                    this.setTabBarIndex(0);
                },
                onShareAppMessage: function(e) {
                    return f(f({}, this.$store.state.app.shares), {}, {
                        path: "/pages/index/index"
                    });
                },
                onReachBottom: function() {
                    this.showMore || this.getFeedsList();
                },
                methods: f(f({}, (0, c.mapActions)([ "getHomeBanner", "getHomeFeeds", "resetFeeds", "getActivityHistoryRecommend", "getOpenInfo" ])), {}, {
                    setHomeTopBgStyle: function() {
                        var e = this;
                        return (0, a.default)(i.default.mark(function n() {
                            var t, o, r, a, s, c, l, d;
                            return i.default.wrap(function(n) {
                                for (;;) switch (n.prev = n.next) {
                                  case 0:
                                    t = [], o = 0;

                                  case 2:
                                    if (!(o < e.banner.length)) {
                                        n.next = 15;
                                        break;
                                    }
                                    return r = e.banner[o], a = r.image, n.next = 7, (0, u.analyze)(a + "?imageMogr2/thumbnail/!1p/ignore-error/1", {
                                        scale: 1
                                    });

                                  case 7:
                                    s = n.sent, c = s.averageR, l = s.averageG, d = s.averageB, t.push(f(f({}, r), {}, {
                                        style: "linear-gradient(180deg, rgba(".concat(c, ", ").concat(l, ", ").concat(d, ", 0) 0%, rgba(").concat(c, ", ").concat(l, ", ").concat(d, ", 1) 100%);"),
                                        themeStyle: "rgba(".concat(c, ", ").concat(l, ", ").concat(d, ", 1)")
                                    }));

                                  case 12:
                                    o++, n.next = 2;
                                    break;

                                  case 15:
                                    e.bannerList = t;

                                  case 16:
                                  case "end":
                                    return n.stop();
                                }
                            }, n);
                        }))();
                    },
                    signInHide: function() {},
                    getFeedsList: function() {
                        var e = this;
                        return (0, a.default)(i.default.mark(function n() {
                            var t, o, r, a;
                            return i.default.wrap(function(n) {
                                for (;;) switch (n.prev = n.next) {
                                  case 0:
                                    if (!e.scrollLoadLock) {
                                        n.next = 2;
                                        break;
                                    }
                                    return n.abrupt("return");

                                  case 2:
                                    if (e.scrollLoadLock = !0, t = e.feedsOptions, o = t.more, r = t.page, a = t.pageSize, 
                                    o) {
                                        n.next = 6;
                                        break;
                                    }
                                    return n.abrupt("return");

                                  case 6:
                                    return n.next = 8, e.getHomeFeeds({
                                        page: r,
                                        limit: a
                                    });

                                  case 8:
                                    e.feedsOptions.page++, e.feeds.length < r * a && (e.feedsOptions.more = !1), e.scrollLoadLock = !1, 
                                    e.pullLoad = !1;

                                  case 12:
                                  case "end":
                                    return n.stop();
                                }
                            }, n);
                        }))();
                    },
                    openPageHide: function() {
                        this.showHome = !0;
                    },
                    openPageClose: function() {
                        this.showOpen = !1;
                    },
                    close: function() {
                        this.value = !1;
                    },
                    getData: function() {
                        var e = this;
                        return (0, a.default)(i.default.mark(function n() {
                            return i.default.wrap(function(n) {
                                for (;;) switch (n.prev = n.next) {
                                  case 0:
                                    return n.next = 2, e.getHomeBanner();

                                  case 2:
                                    return n.next = 4, e.getActivityHistoryRecommend();

                                  case 4:
                                    e.getFeedsList(), e.getOpenInfo();

                                  case 6:
                                  case "end":
                                    return n.stop();
                                }
                            }, n);
                        }))();
                    },
                    touchstart: function(e) {
                        this.slideStart = e.touches[0];
                    },
                    touchend: function(e) {},
                    onPageScroll: function(e) {
                        var n = this;
                        clearTimeout(this.scrollTimer), this.scrollTimer = null, this.scrollTimer = setTimeout(function() {
                            (console.log("滚动停止", e), n.showMore) || (e.scrollTop > 940 ? (n.isShowCloseContent = !0, 
                            n.isHideCloseContent = !1) : (n.isShowCloseContent = !1, n.isHideCloseContent = !1));
                        }, 500);
                    },
                    onLoadMore: function() {
                        this.loadMore();
                    },
                    touchmove: function(e) {
                        this.showMore || ((null == e ? void 0 : e.changedTouches[0]).pageY > 940 ? (this.isShowCloseContent = !1, 
                        this.isHideCloseContent = !0) : (this.isShowCloseContent = !1, this.isHideCloseContent = !1));
                    },
                    onCloseContent: function() {
                        this.feedsOptions = {
                            page: 2,
                            more: !0,
                            pageSize: 4
                        }, this.resetFeeds(), this.showMore = !0, this.isShowCloseContent = !1, this.isHideCloseContent = !1;
                    },
                    loadMore: function(e) {
                        this.pullLoad = !0, this.getFeedsList(), this.showMore = !1;
                    },
                    setPinStyle: function(e) {
                        e ? (o.setNavigationBarColor({
                            frontColor: "#000000",
                            backgroundColor: "#f8f3e8",
                            animation: {
                                duration: 300
                            }
                        }), this.topBarTitle = "故宫博物院", this.topBarColor = "#3b2121", this.topBarBg = "#f8f3e8") : (o.setNavigationBarColor({
                            frontColor: "#ffffff",
                            backgroundColor: "#f8f3e8",
                            animation: {
                                duration: 300
                            }
                        }), this.topBarTitle = " ", this.topBarColor = "#fff", this.topBarBg = "transparent");
                    }
                })
            };
        }).call(this, t("543d").default, t("bc2e").default);
    },
    f75a: function(e, n, t) {
        t.r(n);
        var o = t("3967"), r = t("8069");
        for (var i in r) [ "default" ].indexOf(i) < 0 && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(i);
        t("092d");
        var a = t("f0c5"), s = Object(a.a)(r.default, o.b, o.c, !1, null, "4c948373", null, !1, o.a, void 0);
        n.default = s.exports;
    }
}, [ [ "d537", "common/runtime", "common/vendor" ] ] ]);